package cn.wsalix.templet.service.impl;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.anlaser.service.impl.SimpleServiceImpl;
import cn.anlaser.utils.SearchFilter;
import cn.wsalix.templet.entity.SitePagePlace;
import cn.wsalix.templet.form.SitePagePlaceForm;
import cn.wsalix.templet.repository.SitePagePlaceRepository;
import cn.wsalix.templet.service.SitePagePlaceService;

@Service("sitePagePlaceService")
@Transactional(readOnly = true)
public class SitePagePlaceServiceImpl extends
		SimpleServiceImpl<SitePagePlaceForm,SitePagePlaceRepository, SitePagePlace> implements SitePagePlaceService {

	@Autowired
	private SitePagePlaceRepository sitePagePlaceRepository;

	@Override
	public SitePagePlaceRepository getRepository() {
		return sitePagePlaceRepository;
	}

	@Override
	public String module() {
		return "sitepageplace";
	}

	@Override
	public List<SitePagePlace> findByPageId(Long pageId) {
		return sitePagePlaceRepository.finByPageId(pageId);
	}

	@Override
	public Class<SitePagePlace> getEntityClazz() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Map<String, SearchFilter> buildByForm(SitePagePlaceForm form) {
		// TODO Auto-generated method stub
		return null;
	}

}
